<div class="order-list-page" ng-if="pagedata.op == 'main'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的问答</div>
		<div class="fui-header-right"></div>
	</div>
	<div class='fui-content order-list' style="padding-top:0.5rem">
		<div class='jy-content'>
		<div class="fui-list-group order-item radius" ng-repeat="item in pagedata.list">
				<div style="padding:0.5rem">
					<div class="fui-cellone" style="padding:0">
						<div class="fui-cellone-text" style="font-size:0.7rem;">
						<div class="bold">问：{{item.title}}</div>
						<div class="gray" style="font-size:0.65rem;">
							答：{{item.msg}}
						</div>
						</div>
					</div>
					<div style="font-size: 0.65rem"><span class="syscolor">{{item.statustitle}}</span> <i class="icon icon-shijian gray" style="font-size: 0.65rem"> 时间：{{item.createtime}}</i></div>
				</div>
				<div class="fui-list-group-title lineblock opblock">
					<span class="status noremark">
						<div class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除</div>
						<div class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="access_json('/wenda/edit/id='+item.id)">编辑</div>
					</span>
				</div>
        </div>
		</div>
	</div>
	<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有内容！</p>
	</div>
	<div class="fe-floatright-bottom" style="bottom:3rem">
		<div class="icon" style="border-radius: 2.5rem;background-color: {{main.syscolor || '#63BE72'}};width:2.5rem;height:2.5rem" href="javascript:;" ng-click="access_json('/wenda/edit/')">
			<i class="icon icon-lvyoutehui" style="color:#fff;font-size:1.1rem;"></i>
			<div class="c" style="color:#fff;font-size:0.6rem;margin-top:-0.4rem">添加</div>
		</div>
	</div>
</div>
<div class='fui-page  fui-page-current' ng-if="pagedata.op == 'edit'">
	<div class='fui-content'>
	<div class='jy-content'>
		<div class="fui-cell-group radius">
			<div class="fui-cell">
				<div class="fui-cell-label" style="width:2rem">问题</div>
				<div class="fui-cell-info"><textarea type="text" class='fui-input' placeholder="设置问题" ng-model="pagedata.item.title" rows="2"></textarea></div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label" style="width:2rem">答案</div>
				<div class="fui-cell-info"><textarea type="text" class='fui-input' placeholder="设置答案" ng-model="pagedata.item.msg" rows="6"></textarea></div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label" style="width:2rem">状态</div>
				<div class="fui-cell-info" ng-click="toogle(pagedata.item,'status',[0,1])">
					<input class="weui_switch" type="checkbox" ng-checked="pagedata.item.status==1">
				</div>
			</div>
		</div>
		<a href='javascript:;' ng-click="post(pagedata.item,'/wenda/post/')" class='btn btn-success block'>确认提交</a>
	</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
scope.tool.get_list('jy_aikefu/wenda/list/',true);
scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_aikefu/wenda/list/');
}
</script>